<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<!-- BEGIN REGISTRATION FORM -->
<form action="<?=url::base().Router::uri('auth', array('method'=>'register'))?>" method="post" class="regform">
  <h3><?=Kohana::lang('auth.register.title')?></h3>
  <ol>
    <li>
			<?message::render('validation', 'email')?>
			<dl>
				<dt>
					<label for='email'>
						<?=Kohana::lang('auth.email.label')?> <em>*</em>
						<p class='rule'><?=Kohana::lang('auth.email.rule')?></p>
					</label>
				</dt>
				<dd>
					<input type='text' name='email' id='email' size="30" maxlength="32" value="<?=message::custom('email')?>" />
				</dd>
			</dl>
		</li>
    <li>
			<?message::render('validation', 'email_confirm')?>
			<dl>
				<dt>
					<label for='email_confirm'><?=Kohana::lang('auth.email_confirm.label')?> <em>*</em>
					</label>
				</dt>
				<dd>
					<input type='text' name='email_confirm' id='email_confirm' size="30" maxlength="32" value="<?=message::custom('email_confirm')?>" />
				</dd>
			</dl>
		</li>
    <li>
			<?message::render('validation', 'username')?>
			<dl>
				<dt>
					<label for='username'>
						<?=Kohana::lang('auth.username.label')?> <em>*</em>
						<p class='rule'><?=Kohana::lang('auth.username.rule')?></p>
					</label>
				</dt>
				<dd>
					<input type='text' name='username' id='username' size="30" maxlength="32" value="<?=message::custom('username')?>" />
				</dd>
			</dl>
		</li>
    <li>
			<?message::render('validation', 'password')?>
			<dl>
				<dt>
					<label for='password'>
						<?=Kohana::lang('auth.password.label')?> <em>*</em>
						<p class='rule'><?=Kohana::lang('auth.password.rule')?></p>
					</label>
				</dt>
				<dd>
					<input type='password' name='password' id='password' size="30" maxlength="50" />
				</dd>
			</dl>
		</li>
    <li>
			<?message::render('validation', 'password_confirm')?>
			<dl>
				<dt>
					<label for='password_confirm'>
						<?=Kohana::lang('auth.password_confirm.label')?> <em>*</em>
					</label>
				</dt>
				<dd>
					<input type='password' name='password_confirm' id='password_confirm' size="30" maxlength="50" />
				</dd>
			</dl>
		</li>
		<? if (!Captcha::instance()->promoted()): ?>
		<li>
			<?message::render('validation', 'captcha')?>
			<dl>
				<dt>
					<label for="captcha"><?=Kohana::lang('captcha.label')?></label>
					<p class="rule"><?=Kohana::lang('captcha.rule')?></p>
				</dt>
				<dd>
					<?=Captcha::instance()?>
				</dd>
				<dd>
					<?=form::input('captcha', '', 'class="captcha"')?>
				</dd>
			</dl>
		</li>
		<? endif; ?>
    <li>
			<input type="submit" value="<?=Kohana::lang('auth.register.submit')?>" />
		</li>
  </ol>
</form>
<!-- END REGISTRATION FORM -->
